home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 1998 November / IRIX 6.5.2 Base Documentation November 1998.img / usr / share / catman / u_man / cat1 / file.z / file
Text File  |  1998-10-20  |  6KB  |  131 lines

  1.  
  2.  
  3.  
  4. ffffiiiilllleeee((((1111))))                                                                ffffiiiilllleeee((((1111))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      _ffff_iiii_llll_eeee - determine file type
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      _ffff_iiii_llll_eeee [_----_hhhh] [_----_mmmm _m_f_i_l_e] [_----_ffff _f_f_i_l_e] _a_r_g . . .
  13.      _ffff_iiii_llll_eeee [_----_hhhh] [_----_mmmm _m_f_i_l_e] _----_ffff _f_f_i_l_e
  14.      _ffff_iiii_llll_eeee _----_cccc [_----_mmmm _m_f_i_l_e]
  15.  
  16. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  17.      _ffff_iiii_llll_eeee performs a series of tests on each file supplied by _a_r_g and,
  18.      optionally, on each file supplied in _f_f_i_l_e in an attempt to classify it.
  19.      If _a_r_g appears to be a text file, _ffff_iiii_llll_eeee examines the first 512 bytes and
  20.      tries to guess its programming language.  If _a_r_g is an executable _aaaa_...._oooo_uuuu_tttt,
  21.      _ffff_iiii_llll_eeee prints the version stamp, provided it is greater than 0.  For COFF
  22.      executables, the version stamp will give the version of compilers used to
  23.      generate the executable.  For ELF executables, the version stamp gives
  24.      the version of ELF to which the file conforms.  If _a_r_g is a symbolic
  25.      link, by default the link is followed and _ffff_iiii_llll_eeee tests the file that the
  26.      symbolic link references.
  27.  
  28.      _----_cccc          Check the magic file for format errors.  For reasons of
  29.                  efficiency, this validation is normally not carried out.
  30.  
  31.      _----_ffff _f_f_i_l_e    _f_f_i_l_e contains the names of the files to be examined.
  32.  
  33.      _----_hhhh          Do not follow symbolic links.
  34.  
  35.      _----_mmmm _m_f_i_l_e    Use _m_f_i_l_e as an alternate magic file, instead of _////_eeee_tttt_cccc_////_mmmm_aaaa_gggg_iiii_cccc.
  36.  
  37.      _ffff_iiii_llll_eeee uses _////_eeee_tttt_cccc_////_mmmm_aaaa_gggg_iiii_cccc to identify files that have a magic number.  A magic
  38.      number is a numeric or string constant that indicates the file type.
  39.      Commentary at the beginning of _////_eeee_tttt_cccc_////_mmmm_aaaa_gggg_iiii_cccc explains its format.
  40.  
  41.      _ffff_iiii_llll_eeee classifies files containing supplementary code set characters
  42.      according to the locale specified in the _LLLL_CCCC______CCCC_TTTT_YYYY_PPPP_EEEE environment variable
  43.      [see _LLLL_AAAA_NNNN_GGGG on _eeee_nnnn_vvvv_iiii_rrrr_oooo_nnnn(5)].  _ffff_iiii_llll_eeee reads each argument and can distinguish
  44.      data files, program text files, shell scripts, and executable files as
  45.      follows:
  46.                    Files                          Classification
  47.                    _____________________________________________
  48.                    Data files containing          data
  49.                    supplementary characters
  50.                    Shell scripts containing       command text
  51.                    supplementary characters
  52.                    Language program text files    _x_x_x text
  53.                    containing literals or
  54.                    comments using supplementary
  55.                    characters
  56.  
  57.  
  58.  
  59.  
  60.  
  61.                                                                         PPPPaaaaggggeeee 1111
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68. ffffiiiilllleeee((((1111))))                                                                ffffiiiilllleeee((((1111))))
  69.  
  70.  
  71.  
  72.                    Executable files               executable
  73.  
  74. FFFFIIIILLLLEEEESSSS
  75.      _////_eeee_tttt_cccc_////_mmmm_aaaa_gggg_iiii_cccc
  76.      _////_uuuu_ssss_rrrr_////_llll_iiii_bbbb_////_llll_oooo_cccc_aaaa_llll_eeee_////_l_o_c_a_l_e_////_LLLL_CCCC______MMMM_EEEE_SSSS_SSSS_AAAA_GGGG_EEEE_SSSS_////_uuuu_xxxx_cccc_oooo_rrrr_eeee
  77.      _////_uuuu_ssss_rrrr_////_llll_iiii_bbbb_////_llll_oooo_cccc_aaaa_llll_eeee_////_l_o_c_a_l_e_////_LLLL_CCCC______MMMM_EEEE_SSSS_SSSS_AAAA_GGGG_EEEE_SSSS_////_uuuu_xxxx_ssss_gggg_iiii_cccc_oooo_rrrr_eeee
  78.           language-specific message file [See _LLLL_AAAA_NNNN_GGGG on _eeee_nnnn_vvvv_iiii_rrrr_oooo_nnnn(5).]
  79. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  80.      _ffff_iiii_llll_eeee_hhhh_dddd_rrrr(4)
  81. DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
  82.      If the _----_hhhh option is specified and _a_r_g is a symbolic link, _ffff_iiii_llll_eeee prints the
  83.      error message:
  84.           _UUUU_XXXX_::::_ffff_iiii_llll_eeee_::::_EEEE_RRRR_RRRR_OOOO_RRRR_::::_ssss_yyyy_mmmm_bbbb_oooo_llll_iiii_cccc _llll_iiii_nnnn_kkkk _tttt_oooo _a_r_g
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.                                                                         PPPPaaaaggggeeee 2222
  128.  
  129.  
  130.  
  131.